import request from '@/utils/request'
export function userAll(current,size,searchKeyword) {
 return request({
  url: '/system/coupon/list',
  method: 'get',
  params:{current,size,searchKeyword}
 })
}
export function addCoupon(data){
 return request({
  url:'/system/coupon/add',
  method:'post',
  data
 })
}
export function editCoupon(data){
 return request({
  url:'/system/coupon/update',
  method:'put',
  data
 })
}
export function deleteCoupon(id){
 return request({
  url:'/system/coupon/delete',
  method:'delete',
  params:{id}
 })
}
export function publish(data){
 return request({
  url:'/system/coupon/publish',
  method:'post',
  data
 })
}